<template >
  <Table
    :columns="tableColumns"
    :data="dataList"
    :pagination="undefined"
  >
<!--    <template #source="{row}">-->
<!--      {{EnumSourceTypeText[row.source] || "&#45;&#45;"}}-->
<!--    </template>-->
  </Table>
</template>

<script lang="ts" setup >
import {allSchemas} from '@/views/esim/esproduct/esProduct.data';
import {EsProductVO} from "@/api/esim/esproduct/index";

const props = defineProps({
  data: {
    type: Object as PropType<EsProductVO>,
    default: () => {}
  },
})

const tableColumns = computed(()=> {
  return allSchemas.tableColumns.filter(e=> {
    return e.field !== 'action';
  })
})

const dataList = computed(()=> {
  return props.data ? [props.data] : [];
})
</script>
